SuperResolution
We currently support the following models for superresolution:
- RealESRGAN_x4plus: Upscales images by 4x with enhanced detail and noise reduction, making blurry photos crystal clear.
- RealESRGAN_x2plus: Enhances sharpness and removes artifacts in images, ideal for restoring old photos or enlarging low-resolution ones by 2x.
- RealESRGAN_x4plus_anime_6B: Specifically trained for anime images, upscaling them by 4x with high fidelity and preserving the unique anime style.
- realesr-general-x4v3: A versatile model for various image types, upscaling by 4x with improved stability and performance, making it a great all-rounder for general image enhancement.
API Endpoints
- Run
- Status
https://api.imagepipeline.io/superresolution/v1
API-Key
{
"model_name": "RealESRGAN_x4plus",
"init_image": "https://f005.backblazeb2.com/b2api/v2/b2_download_file_by_id?fileId=4_zfdf0a8ed59e8666b89b10713_f11976e7f0b3c7f7c_d20231228_m055341_c005_v0501001_t0059_u01703742821570",
"scale_factor": 4.0,
"tile": 128,
"face_enhance": false
}
https://api.imagepipeline.io/superresolution/v1/status/{{id}}
API-Key
{
"download_urls": [
"https://f005.backblazeb2.com/b2api/v2/b2_download_file_by_id?fileId=..."
],
"status": "SUCCESS"
}
JSON Parameters
Parameter | Description | Type | Default Value |
---|---|---|---|
model_name | The Real-ESRGAN model to use. Allowed values are: RealESRGAN_x4plus, RealESRGAN_x2plus, RealESRGAN_x4plus_anime_6B, realesr-general-x4v3 | string | Required |
init_image | Public URL for the initial image to be upscaled | string | Required |
scale_factor | The factor by which to upscale the image. Valid values are between 0 and 4 | number | 4 |
tile | Tile size for image segmentation during processing. Valid values are 128 or 256 | integer | 128 |
face_enhance | Whether to enable face enhancement (only works for realistic faces) | boolean | false |